﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using ZD_Domain;
using ZD_Repositories;



namespace ZD_MVC.Controllers
{

    public class MyClass
    {
        public int ID { get; set; }
    }

    public struct MyStruct
    {
        public int ID { get; set; }
    }

    public class HomeController : Controller
    {

        UnitOfWork service = new UnitOfWork();
        public ActionResult Index()
        {
            ViewBag.Message = "欢迎使用 ASP.NET MVC!";

            tb_Member model = new tb_Member
                {
                    ID = Guid.NewGuid(),
                    Email = "157147899@qq.com",
                    NickName = "Jack1",
                    Password = "111111",
                    City = "上海",
                    Description = "NewBeauty",
                    CreateDate = DateTime.Now
                };
            //service.tb_MemberRepository.Add(model);
            service.tb_MemberRepository.Delete(model);
            ViewBag.success = service.Save();

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
